package com.etc.dao;

import com.etc.entity.Unpaid;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

/**
 * Created by Administrator on 2019/5/26.
 */
@Repository
public interface UnpaidDao extends JpaRepository<Unpaid, Integer>, JpaSpecificationExecutor<Unpaid>, Serializable {
    @Query(nativeQuery = true,value = "select u.uid,u.placetime,u.rid from Unpaid u  where  u.rid=?1")
 public   Unpaid findByRidForDel(Integer rid);

}
